package com.sdry.service.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sdry.annotation.BaseService;
import com.sdry.base.BaseServiceImpl;
import com.sdry.entity.PartReturn;
import com.sdry.entity.PartReturnExample;
import com.sdry.mapper.PartReturnMapper;
import com.sdry.service.PartReturnService;

/**
 * 
* @Title: PartReturnServiceImpl.java
* @Package com.sdry.service.impl
* @Description: 退货
* @author cb
* @date 2018年8月2日
* @version V1.0
 */
@Service
@Transactional
@BaseService
public class PartReturnServiceImpl extends BaseServiceImpl<PartReturnMapper, PartReturn, PartReturnExample> implements PartReturnService{
	
	@SuppressWarnings("unused")
	private static final Logger LOGGER = LoggerFactory.getLogger(PartReturnServiceImpl.class);
	
	@Autowired
	PartReturnMapper partReturnMapper;

	@Override
	public PartReturn selectById(long id) {
		return partReturnMapper.selectByPrimaryKey(id);
	}

	@Override
	public int delete(long parseLong) {
		return partReturnMapper.deleteByPrimaryKey(parseLong);
	}

}
